package com.cjjd.c.bean;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.List;

/**
 * ----------------------------------
 * Created by xyd on 2017/9/22.
 * <p/>
 * 描  述：
 * <p/>
 * 修订历史:
 * ----------------------------------
 */

public class CheckInDetailBean extends BaseBean {

    public Order order;
    public List<HotelFloor> dataList;

    public class Order extends BaseBean {
        /**
         * arriveTime : null
         * breakfastTypeName : 单早
         * checkInDate : 2017-09-02
         * checkInDayNum : 1
         * checkOutDate : 2017-09-03
         * depositMoney : 200
         * depositPayType : 0
         * hotelName : 2017全网测试
         * orderDetailUuid :
         * orderId : INTENT2017091100001
         * orderMainUuid : 0cf4e05519914bf09394a8d756600001
         * orderSaleType : 1
         * orderSource : 1
         * payOrderId :
         * reserveMan : 15500000009
         * reserveManIdCard :
         * reserveManMobile : 15500000009
         * roomMoney : 300
         * roomNum : 1
         * roomPayType : 0
         * roomTypeName : 单人间
         * specialDemand : 要一件有窗的房哦
         * totalPayMoney : 500
         */


        //    orderMainUuid	String	订单主表uuid
        //    orderDetailUuid	String	订单明细uuid
        //    orderId	String	订单编号
        //    hotelName	String	酒店名称
        //    checkInDate	String	入店日期
        //    checkOutDate	String	离店日期
        //    checkInDayNum	Int	入住天数
        //    roomTypeName	String	房型名称
        //    breakfastTypeName	String	早餐形式名称
        //    orderSaleType	String	订单销售类型
        //    orderSource	String	订单来源
        //    roomNum	Int	房间数
        //    reserveMan	String	预订人
        //    reserveManMobile	String	预订人手机号
        //    reserveManIdCard	String	预订人身份证
        //    arriveTime	String	到店时间
        //    roomMoney	Double	房钱
        //    depositMoney	Double	押金
        //    roomPayType	String	房钱支付状态（0：未支付；1：已支付）
        //    depositPayType	String	押金支付状态（0：未支付；1：已支付）
        //    totalPayMoney	Double	支付总金额
        //    bedInfo	String	床信息
        //    windowInfo	String	窗信息
        //    discountInfo	String	优惠信息
        //    orderType	String	 1.PMS订单  2.预订单（可修改）  3.单位预订单
        public String arriveTime;
        public String breakfastTypeName;
        public String checkInDate;
        public String checkInDayNum;
        public String checkOutDate;
        public String depositMoney;
        public String depositPayType;
        public String hotelName;
        public String orderDetailUuid;
        public String orderId;
        public String orderMainUuid;
        public String orderSaleType;
        public String orderSource;
        public String payOrderId;
        public String reserveMan;
        public String reserveManIdCard;
        public String reserveManMobile;
        public String roomMoney;
        public String roomNum;
        public String roomPayType;
        public String roomTypeName;
        public String specialDemand;
        public String totalPayMoney;
        public String bedInfo;
        public String windowInfo;
        public String discountInfo;
        /**
         * 1：PMS订单；2：预订单；3单位预订单
          */
        public String orderType;
        public String roomTypeImg;


        public int getRoomNum() {

            if (TextUtils.isEmpty(roomNum)) {
                return 0;
            } else {
                return Integer.parseInt(roomNum);
            }

        }
    }


    public class HotelFloor implements Serializable {

        public HotelItemFloorItem build;
        public List<HotelItemFloorItem> floor;

        public class HotelItemFloorItem implements Serializable {

            //"id": "9778feb851a147529bf0330cf9f4ea82"
            //"name": "1-17层"
            public String id;
            public String name;
            public boolean isSelected;
        }

    }


}
